<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>MyMail邮箱代理</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<script type="text/javascript" src="./js/win.js"></script>
		<script type="text/javascript" src="./js/ajax.js"></script>
		<link href="./css/default.css" rel="stylesheet" type="text/css"
			media="screen" />
	</head>

	<body>
		<div id="content">
			<%
if(session.getAttribute("username")==null){
			%>
			
			<div id="nologin" class="redLink">
				对不起,你还没有登录无法进入系统,请点击
				<a href="#" class="redLink" onclick="showWindow('用户登陆', document.getElementById('login').innerHTML);">登陆</a>或<a href="#" onclick="loadRegister();">注册</a>
			</div>
			<div id="login" style="display: none">
				<jsp:include page="login.jsp"></jsp:include>
			</div>
			
			<%
} else {
			%>
			<jsp:include page="main.jsp"></jsp:include>
			
			<% 
}
			%>
		</div>
	</body>
</html>
<script type="text/javascript">
<%
if(session.getAttribute("username")==null){
%>

showWindow('用户登陆',document.getElementById("login").innerHTML);
//alert("weihua"+" yuan");
//ajax("login","get",'alert');

<%
} else {
%>
setTime();
<%
}
%>
</script>
	
